var status = -1;
var selectionLog = [];

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.fieldEffect_复合图片动画(["Map/Effect2.img/Blizzard/skeleton", "normal", "", ""], [1, 1, 0, 0, 0, 0, 0, 0]);
            cm.setAmbience("SoundEff.img/DLep4/war2", 80, 60);
            cm.userSetFieldFloating(306050600, 3, 3, 3);
            cm.onSetMapTagedObjectVisible(1, "DLep4_bomb", 512);
            cm.playerMessage(-1, "请死守桥梁，不要被敌人突破。");
            cm.getClock(120);
            cm.getPlayer().scheduleOpenNpcTask(120, 0, "次元图书馆_Ep4_雪原吟游诗人_死守");
            cm.dispose();
            cm.spawnMobSchedule(8230052, 1, -290, 34, 5000);
            cm.spawnMobSchedule(8230052, 1, -250, 24, 5000);
            cm.spawnMobSchedule(8230052, 1, -200, 7, 5000);
            cm.spawnMobSchedule(8230052, 1, -150, 0, 5000);
            cm.spawnMobSchedule(8230052, 1, -50, -5, 5000);
            cm.spawnMobSchedule(8230053, 1, -50, -5, 5000);
            cm.spawnMobSchedule(8230053, 1, -150, 0, 5000);
            cm.spawnMobSchedule(8230053, 1, -200, 7, 5000);
            cm.spawnMobSchedule(8230052, 1, -290, 34, 15000);
            cm.spawnMobSchedule(8230052, 1, -250, 24, 15000);
            cm.spawnMobSchedule(8230052, 1, -200, 7, 15000);
            cm.spawnMobSchedule(8230052, 1, -150, 0, 15000);
            cm.spawnMobSchedule(8230052, 1, -50, -5, 15000);
            cm.spawnMobSchedule(8230053, 1, -50, -5, 15000);
            cm.spawnMobSchedule(8230053, 1, -150, 0, 15000);
            cm.spawnMobSchedule(8230053, 1, -200, 7, 15000);
            cm.spawnMobSchedule(8230052, 1, -290, 34, 25000);
            cm.spawnMobSchedule(8230052, 1, -250, 24, 25000);
            cm.spawnMobSchedule(8230052, 1, -200, 7, 25000);
            cm.spawnMobSchedule(8230052, 1, -150, 0, 25000);
            cm.spawnMobSchedule(8230052, 1, -50, -5, 25000);
            cm.spawnMobSchedule(8230061, 1, -50, -5, 25000);
            cm.spawnMobSchedule(8230061, 1, -150, 0, 25000);
            cm.spawnMobSchedule(8230061, 1, -200, 7, 25000);
            cm.spawnMobSchedule(8230061, 1, -290, 34, 35000);
            cm.spawnMobSchedule(8230061, 1, -250, 24, 35000);
            cm.spawnMobSchedule(8230061, 1, -200, 7, 35000);
            cm.spawnMobSchedule(8230061, 1, -150, 0, 35000);
            cm.spawnMobSchedule(8230061, 1, -50, -5, 35000);
            cm.spawnMobSchedule(8230053, 1, -50, -5, 35000);
            cm.spawnMobSchedule(8230053, 1, -150, 0, 35000);
            cm.spawnMobSchedule(8230053, 1, -200, 7, 35000);
            cm.spawnMobSchedule(8230052, 1, -290, 34, 45000);
            cm.spawnMobSchedule(8230052, 1, -250, 24, 45000);
            cm.spawnMobSchedule(8230052, 1, -200, 7, 45000);
            cm.spawnMobSchedule(8230052, 1, -150, 0, 45000);
            cm.spawnMobSchedule(8230052, 1, -50, -5, 45000);
            cm.spawnMobSchedule(8230061, 1, -50, -5, 45000);
            cm.spawnMobSchedule(8230061, 1, -150, 0, 45000);
            cm.spawnMobSchedule(8230061, 1, -200, 7, 45000);
            cm.spawnMobSchedule(8230061, 1, -290, 34, 55000);
            cm.spawnMobSchedule(8230061, 1, -250, 24, 55000);
            cm.spawnMobSchedule(8230061, 1, -200, 7, 55000);
            cm.spawnMobSchedule(8230061, 1, -150, 0, 55000);
            cm.spawnMobSchedule(8230061, 1, -50, -5, 55000);
            cm.spawnMobSchedule(8230053, 1, -50, -5, 55000);
            cm.spawnMobSchedule(8230053, 1, -150, 0, 55000);
            cm.spawnMobSchedule(8230053, 1, -200, 7, 55000);
            cm.spawnMobSchedule(8230052, 1, -290, 34, 65000);
            cm.spawnMobSchedule(8230052, 1, -250, 24, 65000);
            cm.spawnMobSchedule(8230052, 1, -200, 7, 65000);
            cm.spawnMobSchedule(8230052, 1, -150, 0, 65000);
            cm.spawnMobSchedule(8230052, 1, -50, -5, 65000);
            cm.spawnMobSchedule(8230053, 1, -50, -5, 65000);
            cm.spawnMobSchedule(8230053, 1, -150, 0, 65000);
            cm.spawnMobSchedule(8230053, 1, -200, 7, 65000);
            cm.spawnMobSchedule(8230052, 1, -290, 34, 75000);
            cm.spawnMobSchedule(8230052, 1, -250, 24, 75000);
            cm.spawnMobSchedule(8230052, 1, -200, 7, 75000);
            cm.spawnMobSchedule(8230052, 1, -150, 0, 75000);
            cm.spawnMobSchedule(8230052, 1, -50, -5, 75000);
            cm.spawnMobSchedule(8230053, 1, -50, -5, 75000);
            cm.spawnMobSchedule(8230053, 1, -150, 0, 75000);
            cm.spawnMobSchedule(8230053, 1, -200, 7, 75000);
            cm.spawnMobSchedule(8230052, 1, -290, 34, 85000);
            cm.spawnMobSchedule(8230052, 1, -250, 24, 85000);
            cm.spawnMobSchedule(8230052, 1, -200, 7, 85000);
            cm.spawnMobSchedule(8230052, 1, -150, 0, 85000);
            cm.spawnMobSchedule(8230052, 1, -50, -5, 85000);
            cm.spawnMobSchedule(8230053, 1, -50, -5, 85000);
            cm.spawnMobSchedule(8230053, 1, -150, 0, 85000);
            cm.spawnMobSchedule(8230053, 1, -200, 7, 85000);
            cm.spawnMobSchedule(8230052, 1, -290, 34, 95000);
            cm.spawnMobSchedule(8230052, 1, -250, 24, 95000);
            cm.spawnMobSchedule(8230052, 1, -200, 7, 95000);
            cm.spawnMobSchedule(8230052, 1, -150, 0, 95000);
            cm.spawnMobSchedule(8230052, 1, -50, -5, 95000);
            cm.spawnMobSchedule(8230053, 1, -50, -5, 95000);
            cm.spawnMobSchedule(8230053, 1, -150, 0, 95000);
            cm.spawnMobSchedule(8230053, 1, -200, 7, 95000);
            cm.spawnMobSchedule(8230052, 1, -290, 34, 105000);
            cm.spawnMobSchedule(8230052, 1, -250, 24, 105000);
            cm.spawnMobSchedule(8230052, 1, -200, 7, 105000);
            cm.spawnMobSchedule(8230052, 1, -150, 0, 105000);
            cm.spawnMobSchedule(8230052, 1, -50, -5, 105000);
            cm.spawnMobSchedule(8230053, 1, -50, -5, 105000);
            cm.spawnMobSchedule(8230053, 1, -150, 0, 105000);
            cm.spawnMobSchedule(8230053, 1, -200, 7, 105000);
            cm.spawnMobSchedule(8230052, 1, -290, 34, 115000);
            cm.spawnMobSchedule(8230052, 1, -250, 24, 115000);
            cm.spawnMobSchedule(8230052, 1, -200, 7, 115000);
            cm.spawnMobSchedule(8230052, 1, -150, 0, 115000);
            cm.spawnMobSchedule(8230052, 1, -50, -5, 115000);
            cm.spawnMobSchedule(8230053, 1, -50, -5, 115000);
            cm.spawnMobSchedule(8230053, 1, -150, 0, 115000);
            cm.spawnMobSchedule(8230053, 1, -200, 7, 115000)
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};